package day05;

import java.lang.reflect.Array;
import java.util.Arrays;

public class ArrayDemo5 {
    public static void main(String[] args) {
        /*int[]a={11,22,33,44,55};
        int[]b= Arrays.copyOf(a,8);
        for (int i=0;i<b.length;i++){
            System.out.println(b[i]);
        }

         */
        int a[]={10,20,30,40,50};
        a=Arrays.copyOf(a,a.length+1);
        for (int i=0;i<a.length;i++){
            System.out.println(a[i]);
        }

    }
}
